import typer
import uvicorn
from intelli_port.api import create_app


app = typer.Typer()


@app.command()
def serve(host: str = "0.0.0.0", port: int = 8000):
    uvicorn.run(create_app, host=host, port=port, factory=True)